﻿using System;
using CID.Domain.Users;
using CID.Web.Controllers;
using NUnit.Framework;

namespace CID.Web.Tests.Authorization
{
    [TestFixture]
    class ControllerAuthorizationForManagerTests : BaseControllerAuthorizationTests
    {
        protected override UserRole Role { get { return UserRole.Manager; } }

        protected override Type[] AuthorizedControllers
        {
            get {
                return new Type[]{
                    typeof(HomeController),
                    typeof(ComponentController),
                    typeof(DeploymentAgentController),
                    typeof(DeploymentLogController),
                    typeof(EnvironmentController),
                    typeof(EnvironmentStateController),
                    typeof(LocationController),
                    typeof(PackageTypeController),
                    typeof(ReleaseController),
                    typeof(ServerController),
                    typeof(ServerRoleController),
                    typeof(TemplateController),
                    typeof(TemplateTypeController),
                    typeof(UserController)
                };
            }
        }
    }
}
